import Vue from 'vue'
import App from './App.vue'
import router from './router'
import MyTabbar from './components/Tabbar'
import store from './store/index'
import Swiper from './components/Swiper'

Vue.config.productionTip = false
import { Button,Toast,Dialog,NavBar,Tabbar, TabbarItem ,List,Swipe, SwipeItem,Search,Col, Row} from 'vant';
Vue.use(Button); 
Vue.use(Toast); 
Vue.use(Dialog); 
Vue.use(NavBar); 
Vue.use(Tabbar); 
Vue.use(List); 
Vue.use(Swipe); 
Vue.use(SwipeItem); 
Vue.use(Search); 
Vue.use(Col);
Vue.use(Row);
Vue.use(TabbarItem); 
Vue.component('Tabbar',MyTabbar);
Vue.component('Swiper',Swiper);


new Vue({
  router, //将router挂载到根实例上
  store,//将store挂载在根实例上 在任何一个组建中用过 跟市里this就可以或如到store 即this.store
  render: h => h(App)
}).$mount('#app')
